package com.dys.service.impl;

import com.dys.service.AService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @className: com.dys.service.impl.AServiceImpl
 * @description: com.dys.service.impl
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/10/21 23:14
 */
@Service
public class AServiceImpl implements AService {

    /**
     * 这个方法中又被@Transactional注解修饰
     */
    @Transactional
    @Override
    public void a() {
        System.out.println("事务的传播属性,执行了A方法......");
    }
}
